package com.qf.utils;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class MD5jiami {

    public static String jiami(String password){
        //加密方式
        String hashAlgorithName ="MD5";
        //加密次数
        int hashIterations =1024;
        //盐
        ByteSource salt = ByteSource.Util.bytes(" peiwanwu");
        //加密
        SimpleHash simpleHash = new SimpleHash(hashAlgorithName, password, salt, hashIterations);
        return simpleHash.toString();
    }
}

